package com.gxa.meiye.admin.controller.lzj;


import com.gxa.meiye.admin.service.ShopService;
import com.gxa.meiye.core.common.ResponseData;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Api(value = "门店表",tags = "门店表接口")
public class ShopController {
    @Autowired
    private ShopService shopService;
    //门店查询
    @ResponseBody
    @GetMapping("/shop/query")
    public ResponseData queryAll(){
        return shopService.queryAll();
    }

    //门店内 项目详情
    @ResponseBody
    @GetMapping("/project/query")
    public ResponseData queryByShop(Integer id){
        return shopService.queryById(id);
    }



}
